package dto;
import java.util.Date;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

public class CitizenDTO {
		private int idCitizen;
		@NotEmpty
		private String name;
		@NotEmpty
		private String surname;
		@Pattern(regexp="[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?",
	            message="invalid email")
		@NotEmpty
		private String email;
		@NotEmpty
		private String password;
		@NotEmpty
		private Date dateBirth;
		
		
		public CitizenDTO() {
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getSurname() {
			return surname;
		}
		public void setSurname(String surname) {
			this.surname = surname;
		}
		public String getEmail() {
			return email;
		}
		public void setEmail(String email) {
			this.email = email;
		}
		public String getPassword() {
			return password;
		}
		public void setPassword(String password) {
			this.password = password;
		}
		public Date getDateBirth() {
			return dateBirth;
		}
		public void setDateBirth(Date dateBirth) {
			this.dateBirth = dateBirth;
		}
		public int getIdCitizen() {
			return idCitizen;
		}
		public void setIdCitizen(int idCitizen) {
			this.idCitizen = idCitizen;
		}		
}
